<%--
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<!-- 网页使用的语言 -->
<html lang="zh-CN">
<head>
    <!-- 指定字符集 -->
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>修改用户</title>

    <!-- 1. 导入CSS的全局样式 -->
    <link href="${pageContext.request.contextPath}/static/css/bootstrap.min.css" rel="stylesheet">
    <!-- 2. jQuery导入，建议使用1.9以上的版本 -->
    <script src="https://code.jquery.com/jquery-2.1.0.min.js"></script>
    <!-- 3. 导入bootstrap的js文件 -->
    <script src="${pageContext.request.contextPath}/static/js/bootstrap.js"></script>

    <script type="text/javascript">

      $(function getCategory() {
        $.ajax({
          type: "get",
          url: "${pageContext.request.contextPath}/category/getCategory",
          success: function (res) {
            res = eval("(" + res + ")");
            for (var i = 0; i < res.length; i++) {
              $("#cid").append("<option value='" + res[i].cid + "'>" + res[i].cname + "</option>");
            }
          }
        })
      })

    </script>
</head>
<body>
&lt;%&ndash;<div class="container" style="width: 400px;">
    <h3 style="text-align: center;">注册会员</h3>
    <form action="${pageContext.request.contextPath}/user/updateCategory" method="post" onsubmit="">
        <h2>
            <label for="cid">会员等级</label>
            <select id="cid" name="cid">

            </select>
        </h2>
        <div class="form-group" style="text-align: center">
            <input class="btn btn-primary" type="submit" value="注册" />
        </div>
    </form>
</div>&ndash;%&gt;

<span th:each="blogId,key : ${keysMap}">
    <a th:href="@{'/blog/articles/'+${key.current.key} }">
        <span th:text="${key.current.value}"></span>
    </a>
</span>

</body>
</html>
--%>
